package org.lem.auth

class ShiroUser {
    String username
    String passwordHash

    static hasMany = [ roles: ShiroRole, permissions: String ]

    static constraints = {
        username(nullable: false, blank: false)
        roles(nullable: true, blank: true)
    }

    def String toString()
    {
        return username
    }


}